import './index.scss'
const Box = ({ list ,img}) => {
    console.log(list, 222222)
    return (
        <div className="box">
            <div className="box-left">
                <img src={img} alt="" />
            </div>
            <div className='box-right'>
                {list.map((item, index) => (
                <div key={index} className='box-item'>
                    <img src={item.img} alt={item.title} />
                    <h3>{item.title}</h3>
                    <p>{item.name}</p>
                </div>
            ))}
            </div>

        </div>
    )
}

export default Box